<ul class="pagination" >

    <#if pagination??>
        <#if pagination.pageNo gt 1>
            <li><a href="javascript:setPage(1,'${pagination.pageSize}')">首页</a></li>
        </#if>
        <#list 5..1 as t>
            <#if (pagination.pageNo-t gt 0)>
                <li><a href="javascript:setPage('${pagination.pageNo-t}','${pagination.pageSize}')">${pagination.pageNo-t}</a></li>
            </#if>
        </#list>
        <li><a href="#" style="background-color: #ddd;">${pagination.pageNo}</a></li>
        <#list 1..5 as t>
            <#if (pagination.totalPage gt pagination.pageNo+t-1)>
                <li><a href="javascript:setPage('${pagination.pageNo+t}','${pagination.pageSize}')">${pagination.pageNo+t}</a></li>
            </#if>
        </#list>
        <#if pagination.totalPage gt pagination.pageNo>
            <li><a href="javascript:setPage('${pagination.totalPage}','${pagination.pageSize}')">尾页</a></li>
        </#if>

    </#if>
    <li><span>共</span></li>
    <li><span>${pagination.totalCount?default(0)}</span> </li>
    <li><span>条</span></li>
</ul>